<?php
declare(encoding='UTF-8');
error_reporting(-1);
if (get_magic_quotes_runtime() == 1) {
    die('Cannot run with runtime magic quotes turned on.');
}
if (get_magic_quotes_gpc() == 1) {
    die('Cannot run with magic quotes turned on.');
}
if (ini_get('register_globals') == 1) {
    die('Cannot run with register globals turned on.');
}
if (phpversion() < '5.2') {
    die('Cannot run with PHP version lower than 5.2');
}
session_start();
@ob_end_clean();
require_once dirname(__FILE__) . '/config.php';
require_once dirname(__FILE__) . '/libs/BugReporter.php';
if (Config::TIMEZONE) {
    date_default_timezone_set(Config::TIMEZONE);
}
require_once dirname(__FILE__) . '/libs/Kernel.php';
try {
    Kernel::init();
} catch (Exception $e) {
    require dirname(__FILE__) . '/500.html';
}
?>
